package edu.spbsu.nonsm00th.qdiff.parser.exception;

import java.text.MessageFormat;

/**
 * Throws if brackets in expression are not consistent.
 * 
 * @author mbuzdov
 */
public class BracketsConsistentException extends ParserException {

    public BracketsConsistentException(int position) {
        super(MessageFormat.format("Brackets are not consistent, position: {0}.", position));
        this.position = position;
    }

    public BracketsConsistentException(String message, int position) {
        super(message);
        this.position = position;
    }

}
